package com.cola;

import java.util.Random;

/**
 * @Grup:com.hxh
 * @Auther:cola
 * @Data:2021/3/13-2021-03-14:18
 * @version:1.0
 */
public class MathRandomDemo {
    public static void main(String[] args) {
        System.out.println(Math.PI);
        System.out.println(Math.abs(-10));
        System.out.println(Math.random()*10);
        System.out.println(Math.round(Math.random()*10));
        System.out.println(Math.sqrt(2));
        System.out.println(Math.floor(1.864578));
        Random r=new Random();
        System.out.println(r.nextLong());
        System.out.println(r.nextInt(10));
    }
}
